/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package smfl;

/**
 *
 * @author Joe Morreale
 * @date May 11, 2010
 */
public class advertisement {

    private String ad;
    private int views;
    private int id;

    public advertisement(String text, int ID)
    {
        id = ID;
        views = 0;
        ad = text;
    }

    public int getViews()
    {
        return views;
    }

    public void incrementViews()
    {
        ++views;
    }

    public String getText()
    {
        return ad;
    }

    public int getID()
    {
        return id;
    }
}
